package com.huilang.demo3;

public interface DessFactory {
    Coffee createCoffee();
    TianPin createTianPin();

}

class AmrcDess implements DessFactory {
    public Coffee createCoffee() {
        return new Amrice();
    }
    public TianPin createTianPin() {
        return new AmrcTianPin();
    }
}


class LatteDess implements DessFactory {
    @Override
    public Coffee createCoffee() {
        return new Latte();
    }

    @Override
    public TianPin createTianPin() {
        return new LatteTianPin();
    }
}